package com.itlxd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itlxd.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;

/**
 * <p>
 * 员工信息 服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-12-25
 */
public interface IEmployeeService {

    /**
     * 获取单个员工信息
     *
     * @param e
     * @return
     */
    Employee getOne(Employee e);

    /**
     * 判断用户名是否存在
     *
     * @param username
     * @return
     */
    Boolean usernameIsExist(String username);

    /**
     * 添加员工
     *
     * @param employee
     * @return
     */
    Integer saveEmployee(Employee employee);

    /**
     * 分页查询员工列表
     *
     * @param currentPage
     * @param pageSize
     * @return
     */
    IPage<Employee> listPageEmployees(Integer currentPage, Integer pageSize, String name);

    /**
     * 根据id查询员工信息
     * @param id
     * @return
     */
    Employee getById(Long id);

    /**
     * 修改员工信息
     * @param employee
     * @return
     */
    Integer updateEmployee(Employee employee);
}
